package com.spzx.product.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.spzx.common.core.web.domain.BaseEntity;

import java.io.Serial;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品sku库存表
 * </p>
 *
 * @author xiongkunYang
 * @since 2025/05/26 18:30
 */
@Schema(description = "商品sku库存")
@Getter
@Setter
@Builder
@TableName("sku_stock")
public class SkuStock extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    @Schema(description = "商品ID")
    private Long skuId;

    /**
     * 总库存数
     */
    @Schema(description = "总库存数")
    private Integer totalNum;

    /**
     * 锁定库存
     */
    @Schema(description = "锁定库存")
    private Integer lockNum;

    /**
     * 可用库存
     */
    @Schema(description = "可用库存")
    private Integer availableNum;

    /**
     * 销量
     */
    @Schema(description = "销量")
    private Integer saleNum;
}
